package com.ourteam.workspace.dao;
/**
 * Template Name : DAO数据对象 Template Version : 1 Template Last Modfiy Date : Fri Aug 18 15:51:23 CST
 * 2017 Auto Generate Date : 2018-11-30 18:42:26 Warning ! This file will be overwrite when
 * regenerate !
 */
import org.apache.commons.lang.StringUtils;

public class WorkspaceResource implements java.io.Serializable {

  public WorkspaceResource() {
    super();
  }

  private long id;

  /** Attribute id Be Seted Falg */
  private boolean idSetted = false;

  /** Attribute id is Null Falg */
  private boolean idNull = false;

  /**
   * Get id
   *
   * @return long
   */
  public final long getId() {

    return id;
  }

  /**
   * Set id
   *
   * @param long
   */
  public final void setId(long id) {

    this.id = id;

    this.idSetted = true;

    this.setIdNull(false);
  }

  /**
   * Get id Has Been Setted
   *
   * @return boolean
   */
  public final boolean isIdSetted() {
    return this.idSetted;
  }

  /** Set id Null */
  public final void setIdNull() {

    this.idNull = true;
  }

  public final void setIdNull(boolean aNullFlag) {

    this.idNull = aNullFlag;
  }

  public final boolean isIdNull() {

    return this.idNull;
  }

  private String description;

  /** Attribute description Be Seted Falg */
  private boolean descriptionSetted = false;

  /** Attribute description is Null Falg */
  private boolean descriptionNull = false;

  /**
   * Get description
   *
   * @return String
   */
  public final String getDescription() {

    if (isDescriptionNull()) {
      return null;
    } else {
      return StringUtils.trim(description);
    }
  }

  /**
   * Set description
   *
   * @param String
   */
  public final void setDescription(String description) {

    this.description = StringUtils.trim(description);

    this.descriptionSetted = true;

    this.setDescriptionNull(this.description == null);
  }

  /**
   * Get description Has Been Setted
   *
   * @return boolean
   */
  public final boolean isDescriptionSetted() {
    return this.descriptionSetted;
  }

  /** Set description Null */
  public final void setDescriptionNull() {

    this.descriptionNull = true;
  }

  public final void setDescriptionNull(boolean aNullFlag) {

    this.descriptionNull = aNullFlag;
  }

  public final boolean isDescriptionNull() {

    return this.descriptionNull;
  }

  private int orderIndex;

  /** Attribute orderIndex Be Seted Falg */
  private boolean orderIndexSetted = false;

  /** Attribute orderIndex is Null Falg */
  private boolean orderIndexNull = false;

  /**
   * Get orderIndex
   *
   * @return int
   */
  public final int getOrderIndex() {

    return orderIndex;
  }

  /**
   * Set orderIndex
   *
   * @param int
   */
  public final void setOrderIndex(int orderIndex) {

    this.orderIndex = orderIndex;

    this.orderIndexSetted = true;

    this.setOrderIndexNull(false);
  }

  /**
   * Get orderIndex Has Been Setted
   *
   * @return boolean
   */
  public final boolean isOrderIndexSetted() {
    return this.orderIndexSetted;
  }

  /** Set orderIndex Null */
  public final void setOrderIndexNull() {

    this.orderIndexNull = true;
  }

  public final void setOrderIndexNull(boolean aNullFlag) {

    this.orderIndexNull = aNullFlag;
  }

  public final boolean isOrderIndexNull() {

    return this.orderIndexNull;
  }

  private String resourcePath;

  /** Attribute resourcePath Be Seted Falg */
  private boolean resourcePathSetted = false;

  /** Attribute resourcePath is Null Falg */
  private boolean resourcePathNull = false;

  /**
   * Get resourcePath
   *
   * @return String
   */
  public final String getResourcePath() {

    if (isResourcePathNull()) {
      return null;
    } else {
      return StringUtils.trim(resourcePath);
    }
  }

  /**
   * Set resourcePath
   *
   * @param String
   */
  public final void setResourcePath(String resourcePath) {

    this.resourcePath = StringUtils.trim(resourcePath);

    this.resourcePathSetted = true;

    this.setResourcePathNull(this.resourcePath == null);
  }

  /**
   * Get resourcePath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourcePathSetted() {
    return this.resourcePathSetted;
  }

  /** Set resourcePath Null */
  public final void setResourcePathNull() {

    this.resourcePathNull = true;
  }

  public final void setResourcePathNull(boolean aNullFlag) {

    this.resourcePathNull = aNullFlag;
  }

  public final boolean isResourcePathNull() {

    return this.resourcePathNull;
  }

  private String resourceType;

  /** Attribute resourceType Be Seted Falg */
  private boolean resourceTypeSetted = false;

  /** Attribute resourceType is Null Falg */
  private boolean resourceTypeNull = false;

  /**
   * Get resourceType
   *
   * @return String
   */
  public final String getResourceType() {

    if (isResourceTypeNull()) {
      return null;
    } else {
      return StringUtils.trim(resourceType);
    }
  }

  /**
   * Set resourceType
   *
   * @param String
   */
  public final void setResourceType(String resourceType) {

    this.resourceType = StringUtils.trim(resourceType);

    this.resourceTypeSetted = true;

    this.setResourceTypeNull(this.resourceType == null);
  }

  /**
   * Get resourceType Has Been Setted
   *
   * @return boolean
   */
  public final boolean isResourceTypeSetted() {
    return this.resourceTypeSetted;
  }

  /** Set resourceType Null */
  public final void setResourceTypeNull() {

    this.resourceTypeNull = true;
  }

  public final void setResourceTypeNull(boolean aNullFlag) {

    this.resourceTypeNull = aNullFlag;
  }

  public final boolean isResourceTypeNull() {

    return this.resourceTypeNull;
  }

  private String status;

  /** Attribute status Be Seted Falg */
  private boolean statusSetted = false;

  /** Attribute status is Null Falg */
  private boolean statusNull = false;

  /**
   * Get status
   *
   * @return String
   */
  public final String getStatus() {

    if (isStatusNull()) {
      return null;
    } else {
      return StringUtils.trim(status);
    }
  }

  /**
   * Set status
   *
   * @param String
   */
  public final void setStatus(String status) {

    this.status = StringUtils.trim(status);

    this.statusSetted = true;

    this.setStatusNull(this.status == null);
  }

  /**
   * Get status Has Been Setted
   *
   * @return boolean
   */
  public final boolean isStatusSetted() {
    return this.statusSetted;
  }

  /** Set status Null */
  public final void setStatusNull() {

    this.statusNull = true;
  }

  public final void setStatusNull(boolean aNullFlag) {

    this.statusNull = aNullFlag;
  }

  public final boolean isStatusNull() {

    return this.statusNull;
  }

  private long workspaceId;

  /** Attribute workspaceId Be Seted Falg */
  private boolean workspaceIdSetted = false;

  /** Attribute workspaceId is Null Falg */
  private boolean workspaceIdNull = false;

  /**
   * Get workspaceId
   *
   * @return long
   */
  public final long getWorkspaceId() {

    return workspaceId;
  }

  /**
   * Set workspaceId
   *
   * @param long
   */
  public final void setWorkspaceId(long workspaceId) {

    this.workspaceId = workspaceId;

    this.workspaceIdSetted = true;

    this.setWorkspaceIdNull(false);
  }

  /**
   * Get workspaceId Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceIdSetted() {
    return this.workspaceIdSetted;
  }

  /** Set workspaceId Null */
  public final void setWorkspaceIdNull() {

    this.workspaceIdNull = true;
  }

  public final void setWorkspaceIdNull(boolean aNullFlag) {

    this.workspaceIdNull = aNullFlag;
  }

  public final boolean isWorkspaceIdNull() {

    return this.workspaceIdNull;
  }

  private String name;

  /** Attribute name Be Seted Falg */
  private boolean nameSetted = false;

  /** Attribute name is Null Falg */
  private boolean nameNull = false;

  /**
   * Get name
   *
   * @return String
   */
  public final String getName() {

    if (isNameNull()) {
      return null;
    } else {
      return StringUtils.trim(name);
    }
  }

  /**
   * Set name
   *
   * @param String
   */
  public final void setName(String name) {

    this.name = StringUtils.trim(name);

    this.nameSetted = true;

    this.setNameNull(this.name == null);
  }

  /**
   * Get name Has Been Setted
   *
   * @return boolean
   */
  public final boolean isNameSetted() {
    return this.nameSetted;
  }

  /** Set name Null */
  public final void setNameNull() {

    this.nameNull = true;
  }

  public final void setNameNull(boolean aNullFlag) {

    this.nameNull = aNullFlag;
  }

  public final boolean isNameNull() {

    return this.nameNull;
  }

  private String workspaceName;

  /** Attribute workspaceName Be Seted Falg */
  private boolean workspaceNameSetted = false;

  /** Attribute workspaceName is Null Falg */
  private boolean workspaceNameNull = false;

  /**
   * Get workspaceName
   *
   * @return String
   */
  public final String getWorkspaceName() {

    if (isWorkspaceNameNull()) {
      return null;
    } else {
      return StringUtils.trim(workspaceName);
    }
  }

  /**
   * Set workspaceName
   *
   * @param String
   */
  public final void setWorkspaceName(String workspaceName) {

    this.workspaceName = StringUtils.trim(workspaceName);

    this.workspaceNameSetted = true;

    this.setWorkspaceNameNull(this.workspaceName == null);
  }

  /**
   * Get workspaceName Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspaceNameSetted() {
    return this.workspaceNameSetted;
  }

  /** Set workspaceName Null */
  public final void setWorkspaceNameNull() {

    this.workspaceNameNull = true;
  }

  public final void setWorkspaceNameNull(boolean aNullFlag) {

    this.workspaceNameNull = aNullFlag;
  }

  public final boolean isWorkspaceNameNull() {

    return this.workspaceNameNull;
  }

  private String workspacePath;

  /** Attribute workspacePath Be Seted Falg */
  private boolean workspacePathSetted = false;

  /** Attribute workspacePath is Null Falg */
  private boolean workspacePathNull = false;

  /**
   * Get workspacePath
   *
   * @return String
   */
  public final String getWorkspacePath() {

    if (isWorkspacePathNull()) {
      return null;
    } else {
      return StringUtils.trim(workspacePath);
    }
  }

  /**
   * Set workspacePath
   *
   * @param String
   */
  public final void setWorkspacePath(String workspacePath) {

    this.workspacePath = StringUtils.trim(workspacePath);

    this.workspacePathSetted = true;

    this.setWorkspacePathNull(this.workspacePath == null);
  }

  /**
   * Get workspacePath Has Been Setted
   *
   * @return boolean
   */
  public final boolean isWorkspacePathSetted() {
    return this.workspacePathSetted;
  }

  /** Set workspacePath Null */
  public final void setWorkspacePathNull() {

    this.workspacePathNull = true;
  }

  public final void setWorkspacePathNull(boolean aNullFlag) {

    this.workspacePathNull = aNullFlag;
  }

  public final boolean isWorkspacePathNull() {

    return this.workspacePathNull;
  }

  public int hashCode() {
    final int prime = 31;
    int result = 1;

    result = prime * result + (int) (getId() ^ (getId() >>> 32));

    return result;
  }

  public boolean equals(Object obj) {

    if (obj == null) {
      return false;
    }
    if ((obj instanceof WorkspaceResource) == false) {
      return false;
    }
    WorkspaceResource other = (WorkspaceResource) obj;

    if (getId() != other.getId()) {
      return false;
    }

    return true;
  }

  public String toString() {

    StringBuffer buffer = new StringBuffer();

    buffer.append("[");

    buffer.append("id=");
    buffer.append(this.id);

    buffer.append("description=");
    buffer.append(this.description);

    buffer.append("orderIndex=");
    buffer.append(this.orderIndex);

    buffer.append("resourcePath=");
    buffer.append(this.resourcePath);

    buffer.append("resourceType=");
    buffer.append(this.resourceType);

    buffer.append("status=");
    buffer.append(this.status);

    buffer.append("workspaceId=");
    buffer.append(this.workspaceId);

    buffer.append("name=");
    buffer.append(this.name);

    buffer.append("workspacePath=");
    buffer.append(this.workspacePath);

    buffer.append("workspaceName=");
    buffer.append(this.workspaceName);

    buffer.append("]");

    return buffer.toString();
  }
}
